package com.ss.android.lockscreen.activity.lock.b;

import android.view.View;

import com.ss.android.lockscreen.http.data.ScreenCell;
import org.json.JSONException;
import org.json.JSONObject;

final class b implements View.OnClickListener {
    private final aa b;
    private final ScreenCell a;

    b(aa arg1, ScreenCell arg2) {
        this.b = arg1;
        this.a = arg2;

    }

    public final void onClick(View arg5) {
        if(aa.a(this.b) != null) {
            aa.a(this.b).a(this.a);
        }

        if(com.ss.android.lockscreen.bb.a().f != null) {
            JSONObject v1 = new JSONObject();
            try {
                v1.put("action", "click_abstract_to_detail");
                v1.put("group_id", String.valueOf(this.a.f));
                v1.put("item_id", String.valueOf(this.a.g));
                if(this.a.b == ScreenCell.Type.LittleVideo) {
                    v1.put("group_type", "little_video");
                }else {
                    String v2 = "group_type";
                    String v0_1 = this.a.i ? "video" : "article";
                    v1.put(v2, v0_1);
                }
            }
            catch(JSONException v0) {
                v0.printStackTrace();
            }

            android.support.design.a.onEvent("lockscreen_picture", v1);
        }
    }
}

